import http from '../index'

export const selectTest = () => http({
  url: '/api/jdcpg/yw/clxx/test',
  method: 'get'
})

export const getLabel = (params) => http({
  url: '/api/jdcpg/yw/clxx/getLabel?ywid=' + params,
  method: 'get'
})

export const addLabel = (data) => http({
  url: '/api/jdcpg/yw/clxx/addLabel',
  method: "post",
  data
})

export const updateLabel = (data) => http({
  url: '/api/jdcpg/yw/clxx/updateLabel',
  method: 'post',
  data
})

export const deleteLabel = (params) => http({
  url: '/api/jdcpg/yw/clxx/deleteLabel?ywid=' + params,
  method: 'get'
})
